//
//  DateHelper.h
//  HealthManager_Customer
//
//  Created by lzh on 2018/1/4.
//  Copyright © 2018年 Facebook. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface DateHelper : NSObject

+ (NSString*)dateStrYMDFromTimeStamp:(NSString*)timeStamp;

+ (NSString*)dateStrFromTimeStamp:(NSString*)timeStamp;

/** 13位的时间戳转成dateformat的格式*/
+ (NSString*)dateStrFromTimeStamp:(NSString*)timeStamp dateFormat:(NSString *)dateformatStr;

+ (NSString*)m_dateStrFromTimeStamp:(NSString*)timeStamp;

/** yyyy-MM-dd转换成nsdate*/
+(NSDate *)stringDateToDate:(NSString *)dateStr;

/** yyyy-MM-dd转换成13位的时间戳*/
+(NSString *)stringDateToLongTimeStamp:(NSString *)dateStr;

/** 转换成13位的时间戳  格式：yyyy-MM-dd等*/
+ (NSString *)stringDateToLongTimeStamp:(NSString *)dateStr dateFormat:(NSString *)dateformat;

// 当前时间
+ (NSString*)curTimeStr;

+ (NSComparisonResult)compareTime:(NSString *)startTime withEndTime:(NSString *)endTime dateFormat:(NSString *)dateformat;

+(NSString*) compareCurrentTime:(NSString*) dateStr;

@end
